package com.jinly.ryder.jenkins.service;

import com.jinly.ryder.jenkins.service.model.JenkinsArtifact;
import com.jinly.ryder.jenkins.service.model.JenkinsBuild;
import com.jinly.ryder.jenkins.service.model.JenkinsJob;
import com.jinly.ryder.jenkins.service.model.JenkinsJobParam;

import java.util.List;

public interface JenkinsJobService {
    List<JenkinsArtifact> getArtifacts(String jobName);

    List<JenkinsBuild> getBuilds(String jobName);

    JenkinsJob getJenkinsJob(String jobName, boolean loadBuild);

    void createJob(JenkinsJobParam jenkinsJobParam);

    void uploadJob(JenkinsJobParam jenkinsJobParam);

    void saveJob(JenkinsJobParam jenkinsJobParam);

}
